package com.example.demo.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private Long id;
    private String username;
    private String password;
    private String name;
    private String phone;
    private String sex;
    private Integer age;
    private Integer height;
    private Integer currentWeight;
    private Integer targetWeight;
    private Integer isPcos;
    private Integer pcosOnsetDate;
    private String symptoms;
    private Integer sleep;
    private Integer vip;
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private String birthday;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
